<?php

namespace plugins\yifang_backend_account\middleware;

use \yifang\middleware\Middleware_contract;

class LoginData implements Middleware_contract
{
    /**
     *  处理请求
     */
    public function handle($request, \Closure $next)
    {
        $userData=app("YifangBackendAccount_L_Admin_login")->getLoginData()["data"];
        $request->setProcessData(["loginData"=>$userData]);
        $response = $next($request);
        return $response;
    }
}
